<?php if (!defined("_ECRIRE_INC_VERSION")) return;
/**
 * Aloha Cart
 *
 * @author     Aleksey Yaroshchuk (aleksey.yaroshchuk@gmail.com)
 * @license    GNU/GPL
 * @package    plugins
 * @subpackage alohacart
 * @copyright  (c) Aleksey Yaroshchuk 2011-2012
 * @link       http://www.spip-contrib.net/AlohaCart
 */
 
/**
 *  Dymanic Tag wich outputs "Add to Cart" link
 *  Format: #ALOHACART_ADD_PRODUCT{<id_product>, <titre>, <article>, <price>, <img_file>, <link>}
 *  Example: #ALOHACART_ADD_PRODUCT{1, Product 1, 6375482, 999, 'IMG/arton1.jpg', #URL_ARTICLE}
 */
function balise_ALOHACART_ADD_PRODUCT($p) {	
	return calculer_balise_dynamique($p,'ALOHACART_ADD_PRODUCT', array());
}

function balise_ALOHACART_ADD_PRODUCT_stat($args, $filtres) {    
	return $args;
}

function balise_ALOHACART_ADD_PRODUCT_dyn($id_product, $titre = '', $article = '', $price = '', $img_file = '', $link = '') {    
    return array('balise/alohacart_add_product', 0, 
		array(
            'id_product'=> $id_product,
            'titre'=> $titre,
            'article'=> $article,
            'price'=> $price,
            'img_file'=> $img_file,
            'link'=> $link
		));
}

?>